<p>
  <b>Name:</b>
  <%=h @restaurant.name %>
</p>

<p>
  <b>Phone:</b>
  <%=h @restaurant.phone %>
</p>

<p>
  <b>Address:</b>
  <%=h @restaurant.address %>
</p>

<p>
  <b>Description:</b>
  <%=h @restaurant.description %>
</p>

<p>
  <b>Created by:</b>
  <%= link_to h(@restaurant.user.login), @restaurant.user if @restaurant.user %>
</p>

<% unless @restaurant.product_categories.blank? %>
  <h3>Categories</h3>
  <p><%= render :partial => 'category', :collection => @restaurant.product_categories %></p>
<% end %>

<% unless @restaurant.products.blank? %>
  <h3>Products:</h3>
  <%= render :partial => 'product', :collection => @restaurant.products %>
<% end %>

<%= link_to 'Edit', edit_restaurant_path(@restaurant) %> |
<%= link_to 'Back', restaurants_path %>
